package com.pd.backend.dao.provider;

import com.pd.backend.vo.req.PdOrderGetPageReqVo;
import com.pd.backend.vo.req.PdOrderReqVo;
import org.apache.ibatis.jdbc.SQL;

/**
 * @ClassName PdTaskTransportProvider
 * @Description TODO
 * @date 2023/3/1 0:56
 * @Version 1.0
 */
public class PdTaskTransportProvider {
    public String selectToPage(PdOrderGetPageReqVo pdOrderGetPageReqVo){
        Integer page =( pdOrderGetPageReqVo.getPage()-1)*pdOrderGetPageReqVo.getPageSize();
        Integer pageSize = pdOrderGetPageReqVo.getPageSize();
        SQL sql = new SQL();
        sql.SELECT("*").FROM("pd_task_transport")
                .LIMIT(page+","+pageSize);

        return sql.toString();
    }

}
